//
//  ZPBOneSecondModel.m
//  WZLProduct
//
//  Created by boys on 16/3/24.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "ZPBOneSecondModel.h"
#import "ZPBTwoSecondModel.h"

@implementation ZPBOneSecondModel

- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *tempArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ZPBTwoSecondModel *model = [ZPBTwoSecondModel zpbTwoSecondModel];
            [model setValuesForKeysWithDictionary:dic];
            [tempArr addObject:model];
        }
        self.songs = [NSArray arrayWithArray:tempArr];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
